<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/4/24
  Time: 16:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="com.entity.*,com.servlet.*" %>
<html>
<head>
    <title>修改</title>
</head>
<body>
<%--
  SELECT+INSERT
    --%>
<%
    request.setCharacterEncoding("utf-8");
    SelectOne sone = new SelectOne();
    Students stu = sone.getOne(Integer.parseInt(request.getParameter("Sid")));
%>
<form action="InsertServlet" method="post">
    学号：<input type="text" name="Sid" readonly="readonly" value="<% out.print(stu.getSid());%>">
    姓名：<input type="text" name="Sname" value="<% out.print(stu.getSname());%>">
    性别：<input type="text" name="Sage" value="<% out.print(stu.getSage());%>">
    班级：<input type="text" name="Sclass" value="<% out.print(stu.getSclass());%>">
    <input type="submit" value="提交">
</form>
</body>
</html>
